<extend name="Public/baseConf" />
<block name="breadcrumb"> 
	<div class="row wrapper border-bottom white-bg page-heading">
	    <div class="col-lg-6">
	        <h2><present name="data">待审核({:count($list)})</h2>
	        <ol class="breadcrumb">
	            <li><a href="{:U('index/index')}">首页</a></li>
	            <li class="active">
	                <strong>待审核</strong>
	            </li>
	        </ol>
	    </div>
	    <div class="col-lg-6">
            <div class="title-action">
				<span class="block pull-right">
					<button class="btn btn-danger ajax-post confirm" url="{:U("Article/setStatus",array("status"=>-1))}"  target-form="ids">
						<i class="fa fa-trash align-top"></i>删 除
					</button>
					<button class="btn btn-primary btn-success ajax-post" url="{:U('article/setStatus?status=1')}" target-form="ids">
						<i class="fa fa-flag"></i>审 核
					</button> 
				</span>
            </div>
        </div>
	</div>
</block>
<block name="body">
	<div class="row">
            <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>待审核列表</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="table-responsive">
	                  <table class="table table-striped table-bordered table-hover dataTables-example" >
		                  <thead>
		                  <tr>
								<th class="row-selected row-selected">
										<label><input type="checkbox" class="check-all" /><span class="lbl"></span></label></th>
								<th class="center">编号</th>
								<th class="center">标题</th>
								<th class="center">创建者</th>
								<th class="center">类型</th>
								<th class="center">分类</th>
								<th class="center">发布时间</th>
								<th class="center">操作</th>
		                  </tr>
		                  </thead>
		                  <tbody>
							 	<volist name="list" id="vo">
								<tr>
						            <td class="center"><input class="ids" type="checkbox" name="ids[]" value="{$vo.id}" /></td>
									<td class="center">{$vo.id} </td>
									<td class="center"><a href="{:U('Article/edit?cate_id='.$vo['category_id'].'&id='.$vo['id'])}">{$vo.title}</a></td>
									<td class="center">{$vo.username} </td>
									<td class="center"><span>{:get_document_type($vo['type'])}</span></td>
									<td class="center"><span>{:get_cate($vo['category_id'])}</span></td>
									<td class="center"><span>{$vo.create_time|time_format}</span></td>
									<td class="center"><a href="{:U('Article/edit?cate_id='.$vo['category_id'].'&id='.$vo['id'])}">编辑</a>
										<a href="{:U('Article/setStatus?ids='.$vo['id'].'&status=1')}" class="ajax-get">审核</a>
										<a href="{:U('Article/setStatus?status=-1&ids='.$vo['id'])}" class="confirm ajax-get">删除</a>
						                </td>
								</tr>
								</volist>
		                  </tbody>
	                  </table>
		            <div class="page pull-right">
				     	{$_page}
			 		</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</block>
